package com.example.personnel_management_system.service.Impl;

import com.example.personnel_management_system.entity.Roles;
import com.example.personnel_management_system.mapper.RolesMapper;
import com.example.personnel_management_system.service.IRolesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RolesServiceImpl implements IRolesService {

    @Autowired
    private RolesMapper rolesMapper;
    @Override
    public Roles findByrID(Integer rID) {
        return rolesMapper.findByrId(rID);
    }

    @Override
    public Integer update(Roles roles) {
        return rolesMapper.update(roles);
    }

    @Override
    public List<Roles> findall() {
        return rolesMapper.findall();
    }

}
